const { History } = require('../models')

module.exports = class HistoryProxy {
  static async newAndSave (history) {
    const record = new History(history)
    return record.save()
  }
}
